﻿using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class DesiredGenderMapper : IDataMapper<DesiredGender>
    {
        public DesiredGender GetData(IDataReader reader)
        {
            var entity = new DesiredGender
                             {
                                 Id = int.Parse(reader["DesiredGenderId"].ToString()), 
                                 Description = reader["DesiredGenderDescription"].ToString()
                             };
            return entity;
        }

        public void SetParameter(SqlCommand command, DesiredGender entity)
        {
            throw new System.NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new System.NotImplementedException();
        }
    }
}
